using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class HeroManager : BaseManager {
	private Hero curSelectHero;
	private List<Hero> heroList = new List<Hero>();
	public UIGrid heroGrid;
	private GameObject heroObj;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	public Hero GetCurSelectHero(){
		return curSelectHero;
	}
	public void SelectHero(Hero hero){
		curSelectHero = hero;
	}
	public override void Init(){
		foreach(HeroData data in HeroPool.GetAllHero()){
			Hero hero = new Hero();
			hero.id = data.id;
			heroList.Add(hero);
		}
	}
	public List<Hero> GetHeroList(){
		return heroList;
	}
}
